#include "Layer##NAME##.h"
#include "cocostudio/CocoStudio.h"
#include "ui/CocosGUI.h"
#include "deprecated/CCDeprecated.h"
#include "ui/UIHelper.h"
#include "base/CCConsole.h"

USING_NS_CC;
using namespace ui;


CLayer##NAME##::CLayer##NAME##(void)
{
}


CLayer##NAME##::~CLayer##NAME##(void)
{
}

bool CLayer##NAME##::init() {
	// 1. super init first
	if ( !CLayerBase::init() )
	{
		return false;
	}

	//m_Pack = CSLoader::createNode("Inventory.csb");

	//ui::Button* tLoginB = (ui::Button*)ui::Helper::seekWidgetByTag((cocos2d::ui::Widget*)m_Pack, 93);
	//tLoginB->addTouchEventListener(CC_CALLBACK_2(CLayer##NAME##::onOpenPack, this));

	//addChild(m_Pack);

	return true;
}

void CLayer##NAME##::onEnter() {
	CLayerBase::onEnter();
}

/*
void CLayer##NAME##::onExit() {
	CLayerBase::onExit();
}

void CLayer##NAME##::update(float delta) {
	CLayerBase::update(delta);
}
*/

/*
void CLayer##NAME##::onOpenPack(cocos2d::Ref* pSender, cocos2d::ui::Widget::TouchEventType type) {
	switch (type)
	{
	case cocos2d::ui::Widget::TouchEventType::ENDED:
		
		break;
	}
}*/
